<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../include/base.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>CRM客户关系管理系统</title>
	<link href="<%=basePath %>css/all.css" media="screen" rel="stylesheet" type="text/css" />
   <link href="<%=basePath %>css/application.css" media="print" rel="stylesheet" type="text/css" />
   <link href="<%=basePath %>css/blue.css" media="screen" rel="stylesheet" title="Theme" type="text/css" />

<script type="text/javascript">
//<![CDATA[
function async(f) { async.f.push(f) }; async.f = []
//]]>
</script>
  <script type="text/javascript">
//<![CDATA[
var RAILS_ENV = "production"
//]]>
</script>

</head>
<body class="clearfix person party subject party webkit  windows"  onloadnot="setupZoom()">
 

	<div id="app_header">
	<div class="background"></div>
	<div class="boundary">
		<div id="upgrade_bar"></div>
		<div id="inner_header_wrapper">
			<a href="/" id="app_logo">
			<img alt="Logo-topleft" src="<%=basePath %>img/logo-topleft.png" style="padding-top: 8px;" />
			</a>
			<table id="page_actions">
				<tr>
					<td class="tiny">
						<div class="menu_container">
							
								<span class="action">
								<a href=<%=basePath %>contact/toAddContact.action" behavior="return_to">
								<span>添加联系人</span>
								</a>
								</span>
	            	
						</div>
					
					</td>
					<td class="tiny">		
						<div class="menu_container">
							<span class="action"><a href="#" behavior="new_task_button" class="menu_target"><span>新的任务</span></a></span>
							<div id="balloon_new_task" class="balloon left menu_content task_form_balloon">
 
							<div class="balloon_pointer">
								<div class="balloon_arrow menu_target"></div>
								<div class="balloon_arrow_border"></div>
							</div>
  
  
							<div class="balloon_wrapper">
							<div class="balloon_content">
							<div class="new_task">
								<form action="/tasks" class="new_task" id="form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)}); 
								//return false;">
									<div style="margin:0;padding:0;display:inline">
										<input name="authenticity_token" type="hidden" value="9AUKx9XbYod+gDVLMvr3nAlbuuAwyWefB0kyeei50dg=" />
									</div>
									<div id="form_body_task" class="task_form">
										<input id="context" name="context" type="hidden" value="latest" />
										<input id="from" name="from" type="hidden" value="dashboard" />
									<div class="new_task">
									<h3>添加新任务</h3>
										<p class="task_body">
										<input class="autofocus" id="body_task" name="" size="30" type="text" />
										</p>
									<div id="controls_task" class="controls">
										<h5>时间</h5>
										<p>
											<select name="task[frame]" onchange="Tasks.changeFrame(this)">
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-29&quot;,&quot;task[due_at][minute]&quot;:&quot;45&quot;,&quot;task[due_at][hour]&quot;:&quot;11&quot;}" selected="selected" value="today">今天</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">明天</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">本周</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">下周</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">以后</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">特殊的日子...</option>
											   </select>
											<span class="link_to_set_day_and_time">
											或者
											<a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); 
											//return false;">
											设置时间日期
											</a>
											</span>
											</p>
											<div class="set_day_and_time">
												<div class="inner">
													<input id="calendar_task" name="task[due_at][date]" type="hidden" value="2012-09-29" />
													<script type="text/javascript">
													//<![CDATA[
														async("new CalendarDateSelect(\"calendar_task\", {\"id\":\"calendar_task\"});")
													//]]>
													</script>
												<div class="set_task_time">
													at <select id="task_due_at_hour" name="task[due_at][hour]">
													<option value="1">1</option>
													<option value="2">2</option>
													<option value="3">3</option>
													<option value="4">4</option>
													<option value="5">5</option>
													<option value="6">6</option>
													<option value="7">7</option>
													<option value="8">8</option>
													<option value="9">9</option>
													<option value="10">10</option>
													<option value="11" selected="selected">11</option>
													<option value="12">12</option></select>:
													<select id="task_due_at_minute" name="task[due_at][minute]">
															<option value="00">00</option>
															<option value="15">15</option>
															<option value="30">30</option>
															<option value="45" selected="selected">45</option>
													</select>
													<select id="task_due_at_am_pm" name="task[due_at][am_pm]">
															<option value="am">am</option>
															<option value="pm" selected="selected">pm</option></select>
												</div>
												</div>
											</div>
										<h5>选择方式</h5>
											<p>
											<select id="category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)">
											<option value="" selected="selected">None</option>
											<option value="3990180">Call</option>
											<option value="3990181">Demo</option>
											<option value="3990182">Email</option>
											<option value="3990183">Fax</option>
											<option value="3990184">Follow-up</option>
											<option value="3990185">Lunch</option>
											<option value="3990186">Meeting</option>
											<option value="3990187">Ship</option>
											<option value="3990188">Thank-you</option>
											<option value="new">New category...</option></select>
											<a href="/task_categories" behavior="return_to" class="edit_categories">
											编辑方式
											</a>
											</p>
											<p>
											<input name="task[public]" type="hidden" value="0" />
											<input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
												<label for="public_checkbox_task">对每个人都可见</label>
											</p>
    
										</div>
									</div>
									</div>
								<div class="submit">
									<p>
										<input name="commit" type="submit" value="添加保存" />
										<span>或者</span>
										<a href="#" class="menu_target admin">取消</a>
									</p>
								</div>
								</form>
							</div>
						   </div>
                         </div>
							</div>
							</div>
					</td>
					<td class="long">
						<div id="search_wrapper">
							<div class="quick_find">
								<div class="field" style="position:relative;">
									<input type="text" id="sidebar_live_search" name="term" title="a contact, case, deal, or tag..."/>
								</div>
							</div>
						</div>
					</td>
				</tr>
			</table>
			
			 
			
			
			<div id="global_links_container">
				<div class="menu_container">
			      <a href="#" class="name menu_target">
			        设置
			        <span>▼</span>
			      </a>
			      <div id="balloon_global_links" class="balloon center menu_content ">
						<div class="balloon_pointer">
							<div class="balloon_arrow menu_target"></div>
							<div class="balloon_arrow_border"></div>
						</div>
						<div class="balloon_wrapper">
							<div class="balloon_content">
								<ul class="global_links">
								<li><a href="<%=basePath%>contents/showUser.action" class="">用户</a></li>
								<li><a href="#" class="">密码重置</a></li>
								<li><a href="<%=basePath%>contents/showGroup.action" class="">分组</a></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
           </div>
		</div>
	</div>
</div>
 <div id="wrapper">
    <div id="inner_wrapper">
      <div id="main_body" class="column">
        <div id="blank_slate" class="clearfix"> 
        </div>
		<div behavior="switchable_container" id="page" style="display:none">
			<div id="screen_body">
				<div class="two_column_page_layout clearfix">
				<div class="primary">
				<div class="content">
				<div class="party_header">
					<table cellspacing="0">
					<tr>
					<td>
						<span class="sprite avatar blank_avatar person " style="background: url(<%=basePath%>img/5.jpg  ) no-repeat -50px -0px; width: 55px; padding-top:55px; " title="${sessionScope.curr_contact.name}" id="">${sessionScope.curr_contact.name}</span>
					</td>
					<td>
						<h1 class="name">${sessionScope.curr_contact.name}</h1>
							<div class="title_and_company">
							</div>
							<div class="tags">
								<div class="list" id="show_tags">
									<span class="edit">
										<a href="#" id="edit_tags_link" onclick="$$('#show_tags', '#subject_info').invoke('hide'); $$('#edit_tags').invoke('show'); $('new_tag_name').focus();;
										// return false;">
											增加标签
										</a>
									</span> 
								</div>
								<div class="edit" id="edit_tags" style="display: none;">
									<div id="deletable_tags" class="list empty">
									</div>
										 <form action="<%=basePath %>/contact/toUpdateTag.action?&cid=${sessionScope.curr_contact.id}" method="post" >
										
											<div style="margin:0;padding:0;display:inline">
												<input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" />
											</div>
											<span class="header">一个可以添加多个标签</span>
												<input id="new_tag_name" name="tag" type="text" />
												<div class="auto_complete" id="new_tag_name_matches"></div><script type="text/javascript">
													//<![CDATA[
													async("var new_tag_name_auto_completer = new Ajax.Autocompleter('new_tag_name', 'new_tag_name_matches', '/tags/search', { paramName: 'term', updateElement: function(e) { $('new_tag_name').value = (e.textContent || e.innerText || ''); $('new_tag_name').focus(); } })")
													//]]>
													</script>
												<p class="submit">
													<input name="commit" type="submit" value="添加这个标签" xdisable_with="Adding this tag&hellip;" />
													<span>或者</span> 
													<a class="admin" href="#" onclick="$$('#show_tags', '#subject_info').invoke('show'); $$('#edit_tags').invoke('hide');; 
												<!-- 	return false;"> -->
													关闭</a>
												</p>
										</form>
									</div>
								</div>
					</td>
					</tr>
					</table>
				</div>
				<div behavior="switchable_controls" class="display switches">
					<a behavior="switch_to" data-display="notes_and_emails" href="#notes_and_emails">评论 & 邮件</a>
					<a behavior="switch_to" data-display="deals" href="#">交易</a>
					<a behavior="switch_to" data-display="linkedin" href="#">链接</a>
				</div>
				<div behavior="switchable_displays" class="switchable displays">
				<div behavior="notes_and_emails_display" class="notes_and_emails" style="display:none">
				<div id="new_note_container">
					<div class="header">
						<h1>添加一个关于${sessionScope.curr_contact.name}的评论</h1>
					</div>  
					<div id="new_note_form" class="body">
						 <form action="<%=basePath %>contact/saveNote.action?&CId=${sessionScope.curr_contact.id}" class="new_note" enctype="multipart/form-data" id="new_note" method="post" >
							<div style="margin:0;padding:0;display:inline">
								<input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" /></div>
								<input id="note_subject_id" name="note[subject_id]" type="hidden" value="137020703" />
								<input id="note_subject_type" name="note[subject_type]" type="hidden" value="Party" />
								<div class="note_body">
									<textarea class="autofocus" cols="40" data-behavior="autosave" data-focus-priority="1" id="note_body" name="note.content" onbeforepaste="Notes.adjustTextarea(this, 60, 300)" oninput="Notes.adjustTextarea(this, 60, 300)" onkeypress="Notes.adjustTextarea(this, 60, 300)" rows="16" style="height:60px">
								
									</textarea>
								</div>
								<div class="basics" id="new_note_form_basics">
									<div class="submit">
										&nbsp;<input name="commit" type="submit" value="添加这个评论" />
									</div>
									<div class="toggle">
										<a href="#" onclick="$('new_note_form_basics').addClassName('busy'); new Ajax.Request('/people/137020703-qs/new_note_extras', {asynchronous:true, evalScripts:true, method:'get', parameters:'authenticity_token=' + encodeURIComponent('ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=')}); 
										<!--return false;-->" >
										显示选择
										</a>
									(附带文件, 跟踪, 交易)
									</div>
								</div>
								<div class="extras" id="new_note_form_extras" style="display:none"></div>
						</form>
					</div>
				</div>
				<div id="stream">
					<div id="recordings_toggles">
						<form action="/recordings/set_view_style" method="post" style="display: inline">
						<div style="margin:0;padding:0;display:inline">
							<input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" />
						</div>
							<input id="return_url" name="return_url" type="hidden" value="/people/137020703-qs" />
							<input id="scope" name="scope" type="hidden" value="subjects" />
								<select id="view" name="view" onchange="this.up().submit()">
									<option value="expanded">显示视图</option>
									<option value="list">列表视图</option></select></form>
									<div class="links">
									</div>
					</div>
					<div id="recordings" class="recordings ">
				
								<script type="text/javascript">
									//<![CDATA[
									async("Deal.populate({\"pending\":[{\"name\":\"\\u597d\\u7684\",\"id\":2249880}]})")
										//]]>
								</script>
							
						<div id="note_124604796" class="recording note hover_container written_recording">
							
							
							<div class="hover_target">
								<c:forEach items="${noteSet}" var="n">	
								<div class="nubbin">
									<div class="nubbin_content">
									
									<ul>
									<li>
										<a class="image" href="<%=basePath %>contact/delContactNote.action?&contactNoteId=${n.id}">
										
											<span class="sprite " style="background: url(<%=basePath %>img/highrise_sprites.png) no-repeat -111px -180px; width: 15px; padding-top: 13px; " title="Delete" id="">
												删除
											</span>
										</a>
									</li>
									<li>
									<a class="edit_link admin" href="#" onclick="$('note_124604796').addClassName('busy'); new Ajax.Request('/notes/124604796/edit?from=people&amp;subject_id=137020703-qs&amp;subject_type=Person', {asynchronous:true, evalScripts:true, method:'get', parameters:'authenticity_token=' + encodeURIComponent('ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=')});
									// return false;">
										<span>编辑</span>
										</a>
									</li>
									</ul>
									</div>
								</div>
								<div class="type">
									<a href="/notes/124604796">
										<span class="sprite " style="background: url(<%=basePath %>img/highrise_sprites.png) no-repeat -560px -176px; width: 24px; padding-top: 24px; " title="" id="">
										</span>
									</a>
								</div>
							<div class="avatar">
								<a href="/people/137020703-qs" class="avatar">
									<span class="sprite avatar blank_avatar person " style="background: url(img/highrise_sprites.png) no-repeat -112px -0px; width: 55px; padding-top: 55px; " title="qs" id="">
									qs
									</span>
								</a>
							</div>
							<div class="recording_content">
							
							<div class="body">
						<p>评论：${n.content}<br/>
								
						
						 </p>
						<ul class="attachments">
						</ul>
					</div>
								<div class="header">
									<span class="action_links">
										<span class="permalink">
											<a href="/notes/124604796">去评论</a>
										</span>
        <div class="file_recording_container">
			<div class="file_recording menu_container" id="file_under_note_124604796">
				<div class="menu_target">
					<a href="#" class="open_button" onclick="return false">这些文件</a>
				</div>
				<div class="menu_content">
					<form action="/notes/124604796" class="edit_note" id="edit_note_124604796" method="post">
						<div style="margin:0;padding:0;display:inline">
							<input name="_method" type="hidden" value="put" />
							<input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" />
						</div>
							<input id="from" name="from" type="hidden" value="people" />
							<input id="subject_type" name="subject_type" type="hidden" value="Person" />
							<input id="subject_id" name="subject_id" type="hidden" value="137020703" />
							<input class="collection_type" id="note_collection_type" name="note[collection_type]" type="hidden" />
							<input class="collection_id" id="note_collection_id" name="note[collection_id]" type="hidden" />
							<h2>跟踪一笔交易</h2>
							<p>
							<span class="sprite " style="background: url(img/highrise_sprites.png) no-repeat -27px -181px; width: 26px; padding-top: 23px; " title="Deal" id="">
								交易
							</span>
							<select id="dealsselect_to_attach_note_124604796" data-recording-deal-id='' class="deals" onchange="if ($(this).fire('collection:change').stopped) return false;">
								<option value=""> 无交易状态</option>
							</select>
						</p>
							<script type="text/javascript">
							//<![CDATA[
							async("Collections.observeSelect(\"dealsselect_to_attach_note_124604796\", {\"subject_type\":\"Person\",\"recording_id\":124604796,\"collection\":\"deals\",\"subject_id\":137020703});")
							//]]>
							</script>
							<script type="text/javascript">
							//<![CDATA[
							async("Deal.renderDealOptions('dealsselect_to_attach_note_124604796')")
							//]]>
							</script>
					</form>
					<div class="close">
						  <a href="#" class="close_button menu_target" >
						关闭</a>
					
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			//<![CDATA[
			async("SelectFiling.observeSelection('file_under_note_124604796');")
			//]]>
		</script> 
					</span>
					
					<ul>
						<li class="date">
						日期
						</li>
						<li class="kind_and_author">
							<spass="kind_of_recording">
								此人
							</span>
								被 ${sessionScope.curr_user.username}于${n.createtime}评论
						</li>
					</ul>
					</div>
					
					
					</div></c:forEach>
					
					</div>
					
					
					
				</div><script type="text/javascript">
				//<![CDATA[
					async("new MenuObserver('recordings')")
				//]]>
			</script>
				
			</div>
			
			</div>
		</div>
		</div>
  		</div>
  		</div>
  		<div class="sidebar">
			<div class="content">
				<div class="sidebar_controls">
					<div class="edit">
						<a href="<%=basePath %>contact/toEditContact.action?editcid=${sessionScope.curr_contact.id}" class="link_to edit">
						编辑联系人的信息
						</a>
					</div>
				</div>
			<div class="tasks section empty" id="sidebar_tasks_section"> 
					<div class="header">
						<h1>任务</h1>
							<div class="add_task control menu_container">
								<a class="link_to add_task menu_target">添加一个任务</a>
							</div>
					</div>
					<div class="add_task invitation menu_container">
						<a class="link_to add_task menu_target">添加一个任务</a> 关于 ${sessionScope.curr_contact.name}
					</div>
			</div>
			<div class="personal_info section">
			
				<div class="header">
					<h1>个人背景信息</h1>
						<div class="control">
							<a class="link_to zoom" href="#" id="zoom_link" onclick=";
							// return false;">Zoom</a>
							<a href="/people/137020703-qs.vcf" class="link_to vcard">vCard</a>
						</div>
				</div>   
				<div class="email_address data_group">
				<c:forEach items="${contact.emailSet}" var="e">
					<div class="value">
						<a href="#">${e.content}</a>
						<span class="location label">${e.type}</span>
					</div>  
					</c:forEach> 
					
				</div>
				<div class="phone_number data_group">
					<c:forEach items="${contact.phoneSet}" var="p">
					<div class="value">
						<a href="#">${p.num}</a>
						<span class="location label">${p.type}</span>
					</div>  
					</c:forEach> 
					 
				</div>
				<div class="address data_group">
				<c:forEach items="${contact.addressSet}" var="ad">
					<table cellspacing="0">
						<tr>
							<td class="label">${ad.type }</td>
							<td class="local_conditions">
								<div id="local_conditions_address_64275804" style="display:none;">
								</div>
							</td>
						</tr>
					</table>
					<a href="https://maps.google.com/maps?q=%E7%84%A6%E4%BD%9C%E5%B8%82%E8%A7%A3%E6%94%BE%E8%B7%AF+%E7%84%A6%E4%BD%9C%E5%B8%82%2C+%E6%B2%B3%E5%8D%97%E7%9C%81+China" class="map" style="background-image:url(https://maps.google.com/maps/api/staticmap?visible=%E7%84%A6%E4%BD%9C%E5%B8%82+%E6%B2%B3%E5%8D%97%E7%9C%81+China&size=189x90&sensor=false&maptype=terrain&markers=size:small|color:red|%E7%84%A6%E4%BD%9C%E5%B8%82%E8%A7%A3%E6%94%BE%E8%B7%AF%2C+%E7%84%A6%E4%BD%9C%E5%B8%82%2C+%E6%B2%B3%E5%8D%97%E7%9C%81%2C+%2C+China);" target="_blank"></a>
					<div class="value">地址：${ ad.content}</br>
						市区：${ad.region }, 省份：${ad.state }<br />
						国家：${ad.country}</div>
						</c:forEach>
				</div> 
				<div class="data_group">
				
				<%-- <c:if test="${empty customerCareList}">
				空
				</c:if> --%>
				
				 <c:forEach items="${contact.customerCareSet}" var="cc">
					<div class="value">
						<a href="#">${cc.title}</a><br/>
						<span class="location label">${cc.type}</span><br/>
						<span class="location label">${cc.remindtime}</span>
					</div>  
					</c:forEach> 
				</div>
				
			</div>
  		  </div>
  		</div>
    </div>
  </div>
</div>

 <div style="margin-top: 30px"> </div>        
		</div>
		<div id="global_sidebar" class="column">
		<div class="liner">
			<div id="global_nav">
			<ul>
		<li class="dashboard"><a href="<%=basePath %>message/message.action" class="">最新动态</a></li>
			<li class="parties"><a href="<%=basePath %>contact/showContact.action" class="selected">联系 <span class='stat'></span></a></li>
			<li class="tasks"><a href="<%=basePath %>task/task.action" class="">任务<span class='stat'></span></a></li>
			<li class="deals"><a href="<%=basePath %>deal/deal.action" class="">交易 <span class='stat'></span></a></li>
			<li class="dashboard"><a href="/" class="">营销</a></li>
			</ul>
			</div>
          <div id="recent_items"><hr/>
			<h4>最近浏览</h4>
			<div class="recent_items">
				<a href="/tags/2399793" class="recent_item ">
				<span class="sprite avatar blank_avatar tag " style="background: url(https://d1a993iq9azmzq.cloudfront.net/rev_0621f90/images/highrise_sprites.png) no-repeat -168px -148px; width: 32px; padding-top: 32px; " title="大客户" id="">大客户</span>
				<span class="recent_name">大客户</span>
				<span class="recent_desc"></span>
				</a>
			</div>
			</div>
		</div>
    </div>
    </div>
</div>

  <hr style="display: none;" />
	<div id="preloaded_images" style="position:absolute; height:0px; overflow:hidden;">
		<img alt="Dots-white" src="<%=basePath %>img/dots-white.gif" />
		<img alt="Dots-black" src="<%=basePath %>img/dots-black.gif" />
	</div> 
	<script type="text/javascript">
//<![CDATA[
async("new Ajax.Request('/local_conditions?address_ids%5B%5D=64275804', {asynchronous:true, evalScripts:true, method:'get', parameters:'authenticity_token=' + encodeURIComponent('ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=')})")
//]]>
</script>

  <script src="<%=basePath %>js/sprockets.js" type="text/javascript"></script>
  
 <div id="zoom_card" style="display: none">
  <div id="zoom_box">
    <div class="zoom_contact_details">
      <div class="contact_header clearfix">
      
      <div class="personal_info section">
			<c:forEach items="${contactList}" var="c">
				<div class="header">
					<h1>个人背景信息</h1>
					 <span class="sprite avatar blank_avatar person " style="background: url(<%=basePath %>img/5.jpg) no-repeat -112px -0px; width: 55px; padding-top: 55px; " title="qs" id="">
			${sessionScope.curr_contact.name}
		</span>
        <div class="contact_header_details">
          <h1>${sessionScope.curr_contact.name}</h1>
          <h2></h2>
        </div>						
				</div>   
				<div class="email_address data_group">
				<c:forEach items="${c.emailSet}" var="e">
					<div class="value">
						<a href="mailto:89834923@qq.com">${e.content}</a>
						<span class="location label">${e.type}</span>
					</div>  
					</c:forEach> 
					
				</div>
				 <div class="contact_method first">
     
					<c:forEach items="${c.phoneSet}" var="p">
					<div class="value">
						<a href="#">${p.num}</a>
						<span class="location label">${p.type}</span>
					</div>  
					</c:forEach> 
					 
				</div>
				<div class="address data_group">
				<c:forEach items="${c.addressSet}" var="ad">
					<div class="contact_method first address">
						<div class="location">${ad.type }</div>
								地址：${ ad.content}</br>
								市区：${ad.region }, 省份：${ad.state }<br />
								国家：${ad.country}</div>
     				 </div>
						</c:forEach>
				</div> 
				<div class="data_group">
				
				<div class="contact_method first">
				 <c:forEach items="${customerCareList}" var="cc">
					<div class="value">
						<a href="#">${cc.title}</a><br/>
						<span class="location label">${cc.type}</span><br/>
						<span class="location label">${cc.remindtime}</span>
					</div>  
					</c:forEach> 
					</div>
				</div>
				</c:forEach>
      
      
       
		</div>
	
    </div>
  </div>
  <a href="#" title="Close" id="zoom_close">
    <img alt="close" src="<%=basePath %>img/closebox.png" />
  </a>
</div>
  <script src="<%=basePath %>js/sprockets.js" type="text/javascript"></script> 
  
</body>
</html>